package org.example.function_interface.Consumer;

import java.util.function.Consumer;

public class Demo {
    public static void main(String[] args) {
        consumerString(System.out::println);
    }
    private static void consumerString(Consumer<String> function) {
        function.accept("Hello");
    }
}
